package santeclair.connexion.constantes;

import java.util.Arrays;
import java.util.List;

/**
 * @author jfourmond
 * 
 */
public class ConnexionConstantes {

    public static final int ID_SERVICE_IDENT = 0;
    public static final int ID_SERVICE_CALCUL = 1;
    public static final int ID_SERVICE_ANNULATION = 20;

    public static int TAILLE_TRAME_IDENTIFICATION_ALLER = 200;
    public static int TAILLE_TRAME_IDENTIFICATION_RETOUR = 3400;

    public static String[] MESSAGES_RETOUR_VALIDES = {"01", "03", "04"};
    public static String MESSAGE_RETOUR_NUMERO_CONTRAT_INCONNU = "02";
    public static String MESSAGE_RETOUR_DONNEES_INCONNUES = "06";
    public static String MESSAGE_RETOUR_HOMONYMIE = "03";

    public static List<String> MESSAGES_RETOUR_TRAME01 = Arrays.asList(new String[]{"01"});
    public static List<String> MESSAGES_RETOUR_TRAME03 = Arrays.asList(new String[]{"03"});

    public static String PROPERTY_IDENTIFICATION_PROTOCOLE = "identification.protocole";
    public static String PROPERTY_IDENTIFICATION_RETOURS = "identification.retours";
    public static String PROPERTY_RETOUR_FORMAT = "retour.format";
    public static String PROPERTY_RETOUR_FORMAT_ENTETE = "retour.format.entete";

    public static String LIBELLE_MESSAGE_IDENTIFICATION_INVALIDE = "Identification impossible - Code retour : %CODE_RETOUR%";

    public static final String SCHEMA_NAME = "connexion";
    public static final String PERSISTENCE_UNIT_NAME = "echanges-pu";
    
    public static final String AVANT_PRE_PROCESS = " (Avant preProcess)";
    public static final String AVANT_POST_PROCESS = " (Avant postProcess)";
    public static final String APRES_PRE_PROCESS = " (Apres preProcess)";
    public static final String APRES_POST_PROCESS = " (Apres postProcess)";

}
